package com.awspaas.user.apps.sts;

import com.actionsoft.apps.listener.PluginListener;
import com.actionsoft.apps.resource.AppContext;
import com.actionsoft.apps.resource.plugin.profile.AWSPluginProfile;
import com.actionsoft.apps.resource.plugin.profile.AtFormulaPluginProfile;

import java.util.ArrayList;
import java.util.List;

/**
 * @Title: Plugins
 * @Package com.awspaas.user.apps.sts
 * @Description: 应用插件注册类
 * @Author wanglx
 * @Email
 * @Date 2022/8/10
 */
    public class Plugins implements PluginListener {
    @Override
    public List<AWSPluginProfile> register(AppContext context) {
        List<AWSPluginProfile> list = new ArrayList<AWSPluginProfile>();
        list.add(new AtFormulaPluginProfile("字符串","@IsCsTrustProject(*projectCode)", IsCsTrustProject.class.getName(),"获取信托类型","通过项目编号分辨业务类型是慈善信托还是家族信托"));
        list.add(new AtFormulaPluginProfile("字符串","@IsTrustManagerNext(*processId,*projectNo)", IsTrustManagerNext.class.getName(),"获取信托类型","通过项目编号分辨业务类型是慈善信托还是家族信托"));
        return list;
    }
}